Part Number Hot Search : 
2938840 AMT8410 CY7C024 BSS138W 1209S 2SJ560 74ALS1 KP120
Product Description
Full Text Search
 

To Download HT16K23 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ram mapping 20*4/16*8 lcd controller driver with keyscan HT16K23 revision: v.1.00 date: ? a??? 0?? ? 011 ?a??? 0?? ? 011
rev. 1.00 ? ?a??? 0?? ? 011 rev. 1.00 3 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan table of contents eate latons eneal eston lo aa n ssnent a coonates a ssnent n eston oate ntenal connetons bsolte a atns c caatests c caatests c caatests tn aas ntonal eston powe?-on reset ................................................................................................................. 11 standby ?ode .................................................................................................................... 1? wake-up ............................................................................................................................. 1? system set command ................................................................................................ 13 ?ode set command .................................................................................................... 13 system os?illato? ............................................................................................................... 13 lcd bias gene?ato? ........................................................................................................... 14 segment d?ive? outputs ..................................................................................................... 14 common d?ive? outputs .................................................................................................... 14 display ?emo?y C ra? st?u?tu?e ...................................................................................... 14 lcd d?ive ? ode wavefo?ms .............................................................................................. 16 keys?an ........................................................................................................................ 18 keys? an and int timing .................................................................................................... 18 key matrix confguration t?e setting of key s?an pe?iod ........................................................................................... ?0 t?e ?elations?ip of display pe?iod and key s?an pe?iod ..................................................... ?0
rev. 1.00 ? ?a??? 0?? ? 011 rev. 1.00 3 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan i 2 c serial interface ....................................................................................................... 21 data validity ....................................................................................................................... ?1 start and stop conditions ............................................................................................ ?1 byte fo?mat ........................................................................................................................ ?1 a?knowledge ...................................................................................................................... ?? devi?e add?essing ............................................................................................................. ?? write operation ............................................................................................................ 23 byte w ?ite ope?ation .......................................................................................................... ?3 page w ?ite ope?ation ......................................................................................................... ?3 read ope?ation .................................................................................................................. ?4 command summary ................................................................................................... 25 ht16k?3 ope?ation flow c?a?t ......................................................................................... ?6 application circuit ...................................................................................................... 28 package information ................................................................................................... 30 ? 8-pin sop (300mil) outline dimensions .......................................................................... 30 reel dimensions ................................................................................................................ 31 ca??ie? tape dimensions .................................................................................................... 3?
rev. 1.00 4 ?a??? 0?? ? 011 rev. 1.00 5 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan feature logic voltage: 2.4~5.5v integrated rc oscillator various display mode s C max. 20*4 patterns, 20 segments, 4 commons, 1/3 bias, 1/4 duty C max. 16*8 patterns, 16 segments, 8 commons, 1/4 bias, 1/8 duty i 2 c-bus interface key scan function C max. 20*1 matrix key scanning in 20*4 display mode C max. 16*1 matrix key scanning in 16*8 display mode 16*8 bits ram for display data storage selectable hardware interrupt r/w address auto increment manufactured in silicon gate coms process 28-pin sop package applications industrial control indicator digital clock, thermometer, counter, voltmeter combo set. vcr set instrumentation readouts other consumer application lcd displays general description the HT16K23 is a memory mapping and multi-function lcd controller driver. the max. display segment numbers in the device are 80 patterns (20 segments and 4 commons) or 128 patterns (16 segments and 8 commons). the max. key scan circuits are 20*1 matrix or 16*1 matrix. the software confguration feature of the HT16K23 makes it suitable for multiple lcd applications including lcd modules and display subsystems. the HT16K23 supports a hardware interrupt using register setting. the HT16K23 is compatible with most microcontrollers and communicates via a two-line bidirectional i 2 c-bus.
rev. 1.00 4 ?a??? 0?? ? 011 rev. 1.00 5 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan block diagram lcd d?ive? / keys?an ?i??uit / devi?e add?ess sele?ting ?i??uit display ra? 16*8bits timing gene?ato? i ? c cont?olle? vdd vss sda scl powe?_on ?eset seg0/k0 key data ra? ?0*1 bits seg1/k1 seg?/k? seg15/k15/int seg14/k14 seg13/k13 lcd bias ?i??uit inte?nal rc os?illato? co?3 co?? co?1 co?0 seg19/co?4/k19/int seg18/co?5/k18 seg17/co?6/k17 seg16/co?7/k16 pin assignment                                                     
                          
                                                                     
rev. 1.00 6 ?a??? 0?? ? 011 rev. 1.00 7 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan pad coordinates unit: m ? no pad name x y no pad name x y 1 ? 3 4 5 6 7 8 9 10 11 1? 13 14 15 16 17 18 co?3 nc nc nc nc nc nc seg19/co?4/k19/int seg18/co?5/k18 seg17/co?6/k17 seg16/co?7/k16 seg15/k15/int nc seg14/k14 seg13/k13 seg1?/k1? seg11/k11 seg10/k10 -400.967 -411.650 -417.500 -417.500 -417.500 -417.500 -417.500 -479.400 -479.400 -479.400 -479.400 -479.400 -18?.?70 -3.500 81.500 166.500 ?51.500 336.500 9?4.900 44.016 -44.384 -113.384 -18?.384 -?51.384 -3?0.384 -496.?81 -59?.981 -677.981 -76?.981 -868.000 -39?.?91 -9?4.900 -9?4.900 -9?4.900 -9?4.900 -9?4.900 19 ?0 ?1 ?? ?3 ?4 ?5 ?6 ?7 ?8 ?9 30 31 3? 33 34 35 36 seg9/k9 seg8/k8 seg7/k7 seg6/k6 seg5/k5 seg4/k4 seg3/k3 seg?/k? seg1/k1 seg0/k0 scl sda vlcd vdd vss co?0 co?1 co?? 4?1.500 479.400 479.400 479.400 479.400 479.400 479.400 479.400 479.400 400.967 305.917 ??0.917 13?.317 47.317 -60.967 -145.967 -?30.967 -315.967 -9?4.900 -538.?00 -453.?00 -368.?00 -?83.?00 -198.?00 -113. ?00 -?8.?00 56.800 9?4.900 9?4.900 9?4.900 9?4.900 9?4.950 9?4.950 9?4.900 9?4.900 9?4.900 pad assignment                                             



                                                                                                             chip size: 1167 2058m 2 the ic substrate should be connected to vss in the pcb layout artwork. the vlcd (pad 31) and vdd (pad 32) should be bonded together.
rev. 1.00 6 ?a??? 0?? ? 011 rev. 1.00 7 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan pin description pin name type description sda i/o se?ial data input/output fo? i ? c inte?fa?e. scl i se?ial clo?k input fo? i ? c. v dd positive powe? supply fo? logi? ?i??uits. v ss negative powe? supply fo? logi? ?i??uits? g?ound. co?0 ~ co?3 o lcd common output. seg0/k0 ~ seg14/k14 i/o lcd segment output. key data input? inte?nal pull-low du?ing key s?an. seg15/k15/int i/o w?en t?e ? bit of t?e mode set ?ommand is set to 1? and t?e int/row bit of t ? e mode set ? ommand is set to 0? t ? is pin be?omes an lcd segment output and key data input wit? inte?nal pull-low du?ing key s?an. w?en t?e ? bit of t?e mode set ?ommand is set to 1? and t?e int/row bit of t ? e mode set ? ommand is set to 1? t ? is pin be? omes an int pin? inte?? upt signal out. int is output a?tive-low w?en t? e act bit of mode set ? ommand is set to 0? t? e int output is a?tive-?ig? w?en t?e act bit of t?e mode set ?ommand is set to 1 seg16/co?7/k16 ~ seg18/co?5/k18 i/o w? en t? e ? bit of t? e mode set ? ommand is set to 0? t? is pin be ? omes an lcd segment output and a key data input wit? inte?nal pull-low du?ing a key s?an. w?en t?e ? bit of t?e mode set ?ommand is set to 1? t?is pin be?omes an lcd common output. seg19/co?4/k19/int i/o w?en t?e ? bit of t?e mode set ?ommand is set to 0? and t?e int/row bit of t ? e mode set ? ommand is set to 0? t ? is pin be?omes a lcd segment output and a key data input wit? inte? nal pull-low du?ing key s?an. w?en t?e ? bit of t?e mode set ?ommand is set to 0? and t?e int/row bit of t ? e mode set ? ommand is set to 1? t ? is pin be? omes an int pin? inte?? upt signal out. t? e int output is a?tive- low w?en t ? e act bit of t ? e mode set ? ommand is set to 0 ? t? e int output a?tive-?ig? w? en t? e act bit of t? e mode set ?ommand is set to 1 w?en t?e ? bit of t?e mode set ?ommand is set to 1? t?is pin be?omes an lcd common output.
rev. 1.00 8 ?a??? 0?? ? 011 rev. 1.00 9 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan approximate internal connections vdd gnd scl ? sda vsele ?t- on vsele ?t - off co?0 ~ co?3 vsele ?t- on vsele ?t - off seg 15 / k15 /int seg 19 /co? 4 /k 19 / int vsele ?t- on vsele ?t- off seg0/k 0 ~ seg 14 /k14 seg 16 / co?7 /k 16 ~ seg 18 / co?5 /k 18 absolute maximum ratings supply voltage ................................................................................................ v ss -0.3v to v ss +6.5v input voltage .................................................................................................. v ss -0.3v to v dd +0.3v storage temperature .................................................................................................. -55 c to 150c operating temperature ................................................................................................ -40 c to 85 c note: these are stress ratings only. stresses exceeding the range specified under absolute maximum ratings may cause substantial damage to the device. functional operation of this device at other conditions beyond those listed in the specifcation is not implied and prolonged exposure to extreme conditions may affect device reliability.
rev. 1.00 8 ?a??? 0?? ? 011 rev. 1.00 9 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan d.c. characteristics v dd =2.4~5.5v; ta=25c (unless otherwise specifed) symbol parameter test condition min. typ. max. unit v dd condition v dd ope? ating voltage ?.4 5.5 v i dd 1 ope?ating cu??ent 3v no load? lcd on ? ?0*4 display mode 155 310 a 5v ?60 4?0 a i dd ? ope?ating cu??ent 3v no load? lcd off ? ?0*4 display mode 8 30 a 5v ?0 60 a i stb standby cu??ent 3v no load? standby mode 1 3 a 5v ? 5 a v il input low voltage sda? scl 0 0.3v dd v v i h input hig? voltage sda? scl 0. 7 v dd v dd v i il input leakage ?u??ent v in = v ss o? v dd -1 1 a i ol low level output ?u??ent 3v v ol =0.4v ? sda 3 ma 5v 6 ma i ol1 lcd common sink cu??ent 3v v ol =0.3v 80 160 a 5v v ol =0.5v 180 360 a i oh1 lcd common sou??e cu??ent 3v v oh =?.7v -80 -1?0 a 5v v oh =4.5v -1?0 -?00 a i ol? lcd segment sink cu??ent 3v v ol =0.3v 60 1?0 a 5v v ol =0.5v 1?0 ?00 a i oh? lcd segment sou??e cu??ent 3v v oh =?.7v -40 -70 a 5v v oh =4.5v -70 -140 a i ol 3 int sink cu ??ent 3v v ol =0.3v 1 ma 5v v ol =0.5v ? ma i oh 3 int sou ??e cu??ent 3v v oh =?.7v -1 ma 5v v oh =4.5v -? ma r pl input pull-low resistan ?e 3v seg0/k0~seg19/k19? du?ing keys?an pe?iod ??0 400 600 k 5v ??0 400 600
rev. 1.00 10 ?a??? 0?? ? 011 rev. 1.00 11 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan a.c. characteristics v dd =2.4~5.5v; ta=25c (unless otherwise specifed) symbol parameter test condition min. typ. max. unit v dd condition f lcd lcd f?ame f?equen?y 3v ?0*4 display mode 16*8 display mode 58 7? 90 hz 5v t off v dd off times v dd d?op down to 0v ?0 ?s t sr v dd slew rate 0.05 v/ms note: 1. if the power on reset timing conditions are not satisfed in the power on/off sequence, the internal power on reset circuit will not operate normally. 2. if vdd drops below the minimum voltage of the operating voltage spec. during operating, the power on reset timing conditions must also be satisfed. that is, vdd must drop to 0v and remain at 0v for 20ms (min.) before rising to the normal operating voltage. a.c. characteristics i 2 c-bus ta=25c (unless otherwise specifed) symbol parameter test condition v dd =2.4v to 5.5v v dd =3.0v to 5.5v unit condition min. max. min. max. f scl clo?k f?equen?y 100 400 khz t buf bus f?ee time time in w ?i?? t?e bus must be f?ee befo?e a new t?ansmission ?an sta?t 4.7 1.3 s t hd; sta sta?t ?ondition ?old time after this period, the frst ?lo?k pulse is gene?ated 4 0.6 s t low scl low time 4.7 1.3 s t high scl hig ? time 4 0.6 s t su; sta sta?t ?ondition set-up time only ? elevant fo ? ? epeated start ?ondition. 4.7 0.6 s t hd; dat data ?old time 0 0 s t su; dat data set-up time ?50 100 ns t ? rise time note 1 0.3 s t f fall time note 0.3 0.3 s t su; sto stop ?ondition set-up time 4 0.6 s t aa output valid f ?om clo?k 3.5 0.9 s t sp input filte? time constant (sda and scl pins) noise supp?ession time 100 50 ns note: these parameters are periodically sampled but not 100% tested.
rev. 1.00 10 ?a??? 0?? ? 011 rev. 1.00 11 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan timing diagrams i 2 c timing sda scl t f t hd:sda t low t ? t hd:dat t su:dat t high t su:sta t hd:sta s sr t sp t su:sto p t buf s t aa sda out power-on reset timing        functional description power-on reset when power is turned on, the ic is initialised by the internal power-on reset circuit. the status of the internal circuit after initialization is as follows: display mode is 20*4, 20 segments and 4 commons. system oscillator is off. lcd display is off. key scan stopped. all common pins are set to vss. all segment pins are in an input state. seg19/com4/int pin is set to segment driver. the control registers, key data ram and display data ram are set to a default value. data transfers on the i 2 c-bus should be avoided for 1 ms following power-on to allow completion of the reset procedure.
rev. 1.00 1? ?a??? 0?? ? 011 rev. 1.00 13 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan standby mode in the standby mode, the HT16K23 cannot accept any input command or write data to the display ram except for the system set command. if standby mode is selected with the s bit of system set command is set to 0, the status of the standby mode is as follows: system oscillator is off. lcd display is off. key scan stopped. all key data and int fags are cleared, until the standby mode is cancelled. the key matrix is pushed by any key or if the s bit of the system set command is set to 1, this standby mode will be cancelled and the device will wake-up. all common pins are set to vss. if the int/row bit of mode set command is set to 0, all segment pins are changed to input pins. if the int/row bit of mode set command is set to 1: all segment pins are changed to input pins except for the int pin (output). the int pin output keeps a high level when the act bit of the mode set command is set to 0,. the int pin output keeps to a low level when the act bit of the mode set command is set to 1, if the int/row bit of mode set command is set to 1. wake-up wake-up is implemented by a key press by any key or if the s bit of the system set command is set to 1. then a key scan is performed. system oscillator restarts for normal operation. the previous output will be displayed until updated by each mode command set. the relationship between wake-up and any key press delay timeless and int output and int fag status is as follows: wake-up standby mode ?ommand set f?om ?cu read key data ?ommand set f?om ?cu int flag o? int pin output any key press release key 2 frame cycle no?mal a?tive status ht16k?3 ope?ation status standby status press 2 frame cycle < 2 frame cycle release key no?mal a?tive status press release (w?en t?e a?t bit is set to 1) key data a?e updated key data a?e updated w?en afte? t?e key data ?as been ?ead?clea?s t?e key data ra?. w?en afte? t?e key data ?as been ?ead?clea?s t?e key data ra?.
rev. 1.00 1? ?a??? 0?? ? 011 rev. 1.00 13 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan system set command this command is used to set the follow functions. the HT16K23 operates in normal mode or standby mode. before the standby mode command is sent, it is strongly recommended to read key data frst. lcd display on/off name command option description def. d7 d6 d5 d4 d3 d2 d1 d0 system set 1 0 0 0 0 0 d s s standby mode sele?ting {0}: standby mode {1}: no?mal mode 80h d lcd display on/off {0}: lcd display off {1}: lcd display on mode set command this command is used to set the follow function s . display mode selecting, 20*4 display mode or 16*8 display mode. set the HT16K23 seg/int port to be a segment output or an int output. int output is active-low or active-high. name command option description def. d7 d6 d5 d4 d3 d2 d1 d0 ?ode set 1 0 1 0 0 act int/ row ? ? lcd display mode sele?ting {0}: ?0*4 display mode {1}:16*8 display mode a0h int/ row segment o? int pin sele?ting {0}: segment output seg19/co? 4/k19/int is segment output in ? 0*4 display mode. seg15/k15/int is segment output in 16*8 display mode. {1}: int output seg19/co? 4/k19/int is int output in ?0*4 display mode. seg15/k15/int is int output in 16*8 display mode. act int output level sele ?tion? {0}: int output is a ? tive-low. {1}: int output is a ?tive-?ig?. system oscillator the internal logic and the lcd driver signals of the HT16K23 are timed by the integrated rc oscillator. the system clock frequency (f sys ) determines the lcd frame frequency. a clock signal must always be supplied to the device as removing the clock may freeze the standby mode command is executed. at initial system power on, the system oscillator is in the stop state.
rev. 1.00 14 ?a??? 0?? ? 011 rev. 1.00 15 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan lcd bias generator the full-scale lcd voltage (vop) is obtained from v dd C v ss . fractional lcd biasing voltages are obtained from an internal voltage divider of three series resistors connected between v lcd and v ss . the centre resistor can be switched out of the circuit to provide a 1/3 bias voltage level for the 1/4 duty confguration or 1/4 bias voltage level for the 1/8 duty confguration. segment driver outputs the lcd driver section includes segment outputs which should be connected directly to the lcd panel. the segment output signals are generated in accordance with the multiplexed column signals and with the data resident in the display latch. the unused segment outputs should be left open- circuit. common driver outputs the lcd driver section includes column outputs which should be connected directly to the lcd panel. the common output signals are generated in accordance with the selected lcd drive mode. the unused column outputs should be left open-circuit. display memory C ram structure the display ram is a static 16 x 8-bit ram where the lcd data is stored. a logic 1 in the ram bit-map indicates the on state of the corresponding lcd segment; similarly a logic 0 indicates the off state. there is a one-to-one correspondence between the ram addresses and the segment outputs, and between the individual bits of a ram word and the column outputs. the following tables show the mapping from the ram to the lcd pattern: output com3 com2 com1 com0 output com3 com2 com1 com0 address seg1 seg0 00h seg3 seg? 01h seg5 seg4 0?h seg7 seg6 03h seg9 seg8 04h seg11 seg10 05h seg13 seg1? 06h seg15 seg14 07h seg17 seg16 08h seg19 seg18 09h d7 d6 d5 d4 d3 d? d1 d0 data ram mapping of 20*4 display mode
rev. 1.00 14 ?a??? 0?? ? 011 rev. 1.00 15 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan output com7 com6 com5 com4 com3 com2 com1 com0 address seg0 00h seg1 01h seg? 0?h seg3 03h seg4 04h seg5 05h seg6 06h seg7 07h seg8 08h seg9 09h seg10 0ah seg11 0bh seg1? 0ch seg13 0dh seg14 0eh seg15 0fh d7 d6 d5 d4 d3 d? d1 d0 data ram mapping of 16*8 display mode d 7 d 6 d 5 d 4 d3 d? d1 d0 ?sb lsb
rev. 1.00 16 ?a??? 0?? ? 011 rev. 1.00 17 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan lcd drive mode waveforms 20*4 display mode, 1/4 duty , 1/3 bias v dd v1 v? v ss com0 v dd v1 v? v ss com1 v dd v1 v? v ss com2 v dd v1 v? v ss com3 v dd v1 v? v ss seg0/k0~ seg19/k19 1 frame key scan period display period
rev. 1.00 16 ?a??? 0?? ? 011 rev. 1.00 17 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan 16*8 display mode, 1/8 duty , 1/4 bias v dd v1 v? v3 v ss com0 v dd v1 v? v3 v ss com1 v dd v1 v? v3 v ss com2 v dd v1 v? v3 v ss com3 v dd v1 v? v3 v ss com4 v dd v1 v? v3 v ss com5 v1 v dd v? v3 v ss com6 v1 v dd v? v3 v ss com7 v1 v dd v? v3 v ss seg0/k0~ seg16/k16 display period key scan period 1 frame
rev. 1.00 18 ?a??? 0?? ? 011 rev. 1.00 19 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan keyscan the HT16K23 supports a 20*1 matrix key scan in the 20*4 display mode and a 16*1 matrix key scan in the 16*8 display mode. the h ardware interrupt function is optional, allowing seg19/com4/k19/int in the 20*4 display mode or seg15/k15/int to be used as an int output or as a segment driver. the interrupt fag can be read (polled) through the serial interface instead . the key scan input pins are shared with segment output pins. the keyscan cycle loops continuously with time, with all keys experiencing a full keyscan debounce of over 20ms. a key press is debounced and an interrupt issued if at least one key that was not pressed in a previous cycle is found pressed during both sampling periods. int output is active-low when the act bit of the mode set command is set to 0, int output is active-high when the act bit of the mode set command is set to 1 keyscan and int timing the key data is updated and the int function is changed if the key has been pressed for 2 key- cycles. the int function is changed when the frst key has been pressed. after the key data has been read, the key data registers are cleared to 0 and the int fag bit is set to 0. the int pin goes low when the act bit of the mode set command is set to 1. after the key data has been read, the key data registers are cleared to 0 and the int fag bit is set to 1, and the int pin goes low when the act bit of the mode set command is set to 0. the int fag register is shown below. to clear the int fag status, the key data register must be read from 0x20h~0x22h in one operation. int fag register address code r/w register data d7 d6 d5 d4 d3 d2 d1 d0 def. int fag register 0x30h r 0 0 0 0 0 0 0 int fag 00h 1st frame 2nd frame 3rd frame 4th frame 5th frame 6th frame int flag int pin(active high) int pin(active low) w?en t?e inte??upt asse?ted if ?equi?ed : 1. key data a?e updated ?. slave add?ess a?e updated w?en afte? t?e all key data ?as been ?ead: 1. clea?s t?e key deboun?ed ?egiste?. ?. t?e int flag bit is set to"0 3.t?e int pin goes to low w?en "a?t bit is set to 1. 4.t?e int pin goes to ?ig? w?en "a?t bit is ise to 0. press first key 7th frame 8th frame realease key 9th frame key data updated realease key press second key
rev. 1.00 18 ?a??? 0?? ? 011 rev. 1.00 19 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan key matrix confguration there is a key scan circuit integral to the HT16K23 which can detect a key press. it includes twenty inputs (k0 to k19, shared with seg0 to seg19) in the 20*4 display mode or sixteen inputs (k0 to k15, shared with seg0 to seg15) in the 16*8 display mode. the key matrix has a 20*1 matrix in the 20*4 display mode or a 16*1 matrix in the 16*8 display confguration as shown below: s e g 0/ k 0 s e g 1/ k 1 s e g ?/ k ? s e g 3/ k 3 s e g 4/ k 4 s e g 5/ k 5 s e g 6/ k 6 s e g 7 /k 7 s e g 8/ k 8 s e g 9/k 9 s e g 10 /k 10 s e g 11 /k 11 s e g 1? /k 1? s e g 13 /k 13 s e g 14 /k 14 s e g 15 /k 15 s e g 16 /k 16 s e g 17 /k 17 s e g 18 /k 18 s e g 19 /k 19 vdd = vdd s e g 0/k 0 s e g 1/k 1 s e g ?/k ? s e g 3/k 3 s e g 4/k 4 s e g 5/k 5 s e g 6/k 6 s e g 7 /k 7 s e g 8/k 8 s e g 9/k 9 s e g 10 /k 10 s e g 11 /k 11 s e g 1? /k 1? = s e g 13 /k 13 s e g 14 /k 14 s e g 15 /k 15 20*1 matrix in 20*4 display mode 16*1 matrix in 16*8 display mode key data register after the key data registers have been read, the key data registers are cleared to 0. to enable future key presses to be identifed, if the key data register is not read, the key data accumulates. there is no fifo register in the HT16K23. key-press order, or whether a key has been pressed more than once, cannot be determined unless the all of the key data ram is read after each interrupt and before completion of the next keyscan cycle. after the key data registers have been read, the int output and int fag status are cleared. if a key is pressed and held down, the key is reported as being debounced (and an int is issued) only once. the key must be detected as released by the keyscan circuit before it is debounced again. it is strongly recommended to read the key data registers from the address 0x20h only. the key data registers of addresses from 0x20h to 0x22h should be read continuously and completed in one operation. there is a one-to-one correspondence between the key data register addresses and the key data outputs and between the individual bits of a key data register word and the key data outputs. the following shows the mapping from the ram to the key data output: the key data registers are read only. the key data register format is shown below: key data register address code r/w register data d7 d6 d5 d4 d3 d2 d1 d0 def. key data ?egiste? add?ess point 0x?0h r k7 k6 k5 k4 k3 k? k1 k0 00h 0x?1h r k15 k14 k13 k1? k11 k10 k9 k8 00h 0x??h r 0 0 0 0 k19 k18 k17 k16 00h
rev. 1.00 ?0 ?a??? 0?? ? 011 rev. 1.00 ?1 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan key scan period setting command HT16K23 can adjust the key scan period through this command. the setting is show as below. the default value of key scan period is 2 clock cycle time in 20*4 display mode, 1 clock cycle time in 16*8 display mode. in generally, user does not need to use this command, when key data can be read correctly. due to various lcd characteristic, it will have different rc time constant in key scan period. if the equivalent capacitance is larger in the lcd, it can not be charged or discharged fully in key scan period. the key can not be read correctly. to avoid read key error, user can adjust the key scan period through this command. if key scan period is too longer, it may affect the lcd visual quality. name command option description def. d7 d6 d5 d4 d3 d2 d1 d0 key s?an pe?iod setting 1 1 1 1 1 p? p1 p0 [p?:p0] to adjust key s ?an pe?iod f8h t he setting of key scan period [p2:p0] 20*4 display mode 16*8 display mode 000 ? ?lo?k ?y?le time 1 ?lo?k ?y?le time 001 4 ?lo?k ?y?le time 3 ?lo?k ?y?le time 010 6 ?lo?k ?y?le time 5 ?lo?k ?y?le time 011 8 ?lo?k ?y?le time 7 ?lo?k ?y?le time 100 10 ?lo?k ?y?le time 9 ?lo?k ?y?le time 101 1? ?lo?k ?y?le time 11 ?lo?k ?y?le time 110 14 ?lo?k ?y?le time 13 ?lo?k ?y?le time 111 16 ?lo?k ?y?le time 15 ?lo?k ?y?le time the relationship of display period and key scan period v dd v1 v2 v ss com0~ com3 v dd v1 v2 v ss seg0/k0~ seg19/k19 key scan period display period t v1 v dd v2 v3 v ss com0~ com7 v1 v dd v2 v3 v ss seg0/k0~ seg16/k16 key scan period display period t 20*4 display mode t= display pe?iod + key s?an pe?iod = 110 clock cycle time (fxed) t= display pe?iod + key s?an pe?iod = 55 clock cycle time (fxed) 16*8 display mode
rev. 1.00 ?0 ?a??? 0?? ? 011 rev. 1.00 ?1 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan i 2 c serial interface the device includes a i 2 c serial interface. the i 2 c bus is used for bidirectional, two-line communication between different ics or modules. the two lines are a serial data line (sda) and a serial clock line (scl). both lines are connected to a positive supply via a pull-up resistor. when the bus is free, both lines are high. the output stages of devices connected to the bus must have an open-drain or open-collector output type to implement the required wired and function. data transfer is initiated only when the bus is not busy. data validity the data on the sda line must be stable during the high period of the clock. the high or low state of the data line can only change when the clock signal on the scl line is low (see as below). sda scl data line stable, data valid chang of data allowed start and stop conditions a high to low transition on the sda line while scl is high defnes a start condition. a low to high transition on the sda line while scl is high defnes a stop condition. start and stop conditions are always generated by the master. the bus is considered to be busy after the start condition. the bus is considered to be free again a certain time after the stop condition. the bus stays busy if a repeated start (sr) is generated instead of a stop condition. in this respect, the start(s) and repeated start (sr) conditions are functionally identical. p s sda scl sda scl start ?ondition stop ?ondition byte format every byte put on the sda line must be 8-bits long. the number of bytes that can be transmitted per transfer is unrestricted. each byte has to be followed by an acknowledge bit. data is transferred with the most signifcant bit (msb) frst. s o? s? p o? s? sda scl 1 ? 7 8 9 ack 1 ? 3 - 8 9 ack p s?
rev. 1.00 ?? ?a??? 0?? ? 011 rev. 1.00 ?3 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan acknowledge each byte of eight bits is followed by a single acknowledge bit. this acknowledge bit is a low level which is placed on the bus by the receiver . t he master generates an extra acknowledge related clock pulse. a slave receiver which is addressed must generate an acknowledge (ack) after the reception of each byte. the acknowledg ing device must pull down the sda line during the acknowledge clock pulse so that it remains at a stable low level during the high period of this clock pulse. a master receiver must signal an end of data status to the slave by generating a not-acknowledge (nack) bit on the last byte that has been clocked out of the slave. in this case, the master receiver must leave the data line high during the 9th pulse to not acknowledge. the master will generate a stop or repeated start condition. s 1 ? 7 8 9 ?lk pulse fo? a?knowledgement data output by trans?iter data output by receiver scl fro? ?aster a?knowledge not a?knowledge start ?ondition device addressing the slave address byte is the frst byte received following a start condition form the master device. the first seven bits of the first byte make up the slave address. the eighth bit defines whether a read or write operation is to be performed. when this r/ w bit is 1, then a read operation is selected. a 0 selects a write operation. the HT16K23 address bit format is shown below. when an address byte is sent, the device compares the first seven bits after the start condition. if they match, the device outputs an acknowledge on the sda line. 1 1 1 0 0 1 1 r/w ?sb lsb devi?e add?ess
rev. 1.00 ?? ?a??? 0?? ? 011 rev. 1.00 ?3 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan write operation byte write operation a byte write operation requires a start condition, a slave address with an r/ w bit, a valid register address, data and a stop condition. after each of the three bytes have been transmitted, the device responds with an ack. 1 1 1 0 0 1 1 0 s ack p slave address write co??and code ack command byte received 1 1 1 0 0 1 1 0 s ack p slave address write register address(an) data(n) ack ack single data byte received note: if the byte following slave address is a command code, the byte following the command code will be ignored. page write operation a start condition and a slave address with a r/ w bit placed on the bus indicates to the addressed device that a register address will follow and is to be written to the address pointer. the data to be written to the memory is next and the internal address pointer will be incremented to the next address location on the reception of an acknowledge clock. after reaching the memory location 0x8ah in the 20*4 display mode or 0x8fh in the 16*8 display mode, the pointer will be reset to 0x80h. 1 1 1 0 0 1 1 0 s ack slave address write register address(an) data(n) ack ack ack data(n+1) ack ack data(n+x) p n data bytes received
rev. 1.00 ?4 ?a??? 0?? ? 011 rev. 1.00 ?5 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan read operation in this mode, the master reads the HT16K23 data after setting the slave address. following a r/ w bit (=0) and an acknowledge bit, the register address (an) is written to the address pointer. next a start condition and a slave address are repeated followed by a r/ w bit (=1). the data which was addressed is then transmitted. the address pointer is only incremented on reception of an acknowledge clock. the HT16K23 will place the data at address an+1 on the bus. the master reads and acknowledges the new byte and the address pointer is incremented to an+2. if the register address (an) is 0x00h ~ 0x0fh, after reaching the memory location 0x0fh, the pointer will reset to 0x00h. if the register address (an) is 0x20h ~ 0x22h, after reaching the memory location 0x22h, the pointer will reset to 0x20h. this cycle of reading consecutive addresses will continue until the master sends a stop condition. 1 1 1 0 0 1 1 1 s slave address read data(n) ack ack ack data(n+1) ack data(n+x) p 1 1 1 0 0 1 1 0 s ack slave address write register address(an) p ack nack
rev. 1.00 ?4 ?a??? 0?? ? 011 rev. 1.00 ?5 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan command summary name command / address option description def. d7 d6 d5 d4 d3 d2 d1 d0 display data add?ess pointe? 0 0 0 0 a3 a? a1 a0 [a3:a0] (r/w) fou? bits of immediate data? bits a0 to a4? a?e t?ansfe??ed to t?e data pointe? to defne display ram addresses. 00h key data add?ess pointe? 0 0 1 0 0 0 k1 k0 {k0~k1} (r) it is st?ongly ?e?ommended t?at t? e key data ? egiste?s wit ? add? esses from 0x20h to 0x22h should be read ?ontinuously and in one ope?ation. t?e?efo? e t? e key data ra? add?esses s?ould be sta?ted fo? m 0x20h only. ?0h int fag add?ess pointe? 0 0 1 1 0 0 0 0 (r) int fag address for reading int fag status. 30h system set ?ommand 1 0 0 0 0 0 d s s standby mode sele?ting {0}: standby mode {1}: no?mal mode 80h d lcd display on/off {0}: lcd display off {1}: lcd display on ?ode set ?ommand 1 0 1 0 0 act int/ row ? ? lcd display mode sele?ting {0}: ?0*4 display mode {1}:16*8 display mode a0h int/row segment o? int pin sele?ting {0}: segment output seg19/co? 4/k19/int is segment output in ?0*4 display mode. seg15/k15/int is segment output in 16*8 display mode. {1}: int output seg19/co? 4/k19/int is int output in ?0*4 display mode. seg15/k15/int is int output in 16*8 display mode. act int output level sele ?tion? {0}: int output is a ? tive-low. {1}: int output is a ?tive-?ig?. key s ? an pe?iod setting 1 1 1 1 1 p? p1 p0 [p?:p0] to adjust key s ?an pe?iod f8h note: if the programmed command data is not defned, the function will not be af fected.
rev. 1.00 ?6 ?a??? 0?? ? 011 rev. 1.00 ?7 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan HT16K23 operation flow chart the a ccess procedure is illustrated using the following fowcharts. initiali s ation powe? on ?ode set system set display on powe? on display data rewrite C address setting sta?t next p?o?essing display data display data ra? w?ite add?ess setting
rev. 1.00 ?6 ?a??? 0?? ? 011 rev. 1.00 ?7 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan key data read no yes sta?t int flag bit =1 ? read key data next processing po?t configu?ation registe? set int / row bit=1? yes no clea? int flag no yes int pin bit =1 ? read key data next processing int pin is set to low level no yes int pin bit =0 ? read key data next processing int pin is set to ?ig? level a?t bit is set to 0=? yes no
rev. 1.00 ?8 ?a??? 0?? ? 011 rev. 1.00 ?9 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan application circuit 20*4 display mode without int lcd panel scl sda vdd vss mcu vdd vss ht16k?3 vss r 0.1uf seg11/k11 seg1?/k1? seg13/k13 seg14/k14 seg15/k15/int seg16/co?7/k16 seg17/co?6/k17 seg18/co?5/k18 co?3 co?? co?1 co?0 vdd seg4/k4 seg5/k5 seg6/k6 seg7/k7 seg8/k8 seg9/k9 seg10/k10 r seg3/k3 seg?/k? seg1/k1 seg0/k0 seg19/co?4/k19/int vdd r1x20 = 4.7k 4.7k 20*4 display mode with int lcd panel scl sda vdd vss mcu vdd vss ht16k?3 vss r 0.1uf seg11/k11 seg1?/k1? seg13/k13 seg14/k14 seg15/k15/int seg16/co?7/k16 seg17/co?6/k17 seg18/co?5/k18 co?3 co?? co?1 co?0 vdd seg4/k4 seg5/k5 seg6/k6 seg7/k7 seg8/k8 seg9/k9 seg10/k10 r seg3/k3 seg?/k? seg1/k1 seg0/k0 seg19/co?4/k19/int = vdd r1x19 4.7k 4.7k note: r1=180k ~ 220k, adjust r1 to ft the lcd visual quality.
rev. 1.00 ?8 ?a??? 0?? ? 011 rev. 1.00 ?9 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan 16*8 display mode without int lcd panel scl sda vdd vss mcu vdd vss ht16k?3 vss r 0.1uf seg11/k11 seg1?/k1? seg13/k13 seg14/k14 seg15/k15/int co?3 co?? co?1 co?0 vdd seg4/k4 seg5/k5 seg6/k6 seg7/k7 seg8/k8 seg9/k9 seg10/k10 r seg3/k3 seg?/k? seg1/k1 seg0/k0 seg16/co?7/k16 seg17/co?6/k17 seg18/co?5/k18 seg19/co?4/k19/int = vdd r1x16 4.7k 4.7k 16*8 display mode with int lcd panel scl sda vdd vss mcu vdd vss ht16k?3 vss r 0.1uf seg11/k11 seg1?/k1? seg13/k13 seg14/k14 seg15/k15/int co?3 co?? co?1 co?0 vdd seg4/k4 seg5/k5 seg6/k6 seg7/k7 seg8/k8 seg9/k9 seg10/k10 r seg3/k3 seg?/k? seg1/k1 seg0/k0 seg16/co?7/k16 seg17/co?6/k17 seg18/co?5/k18 seg19/co?4/k19/int = vdd r1x15 4.7k 4.7k note: r1=180k ~ 220k, adjust r1 to ft the lcd visual quality.
rev. 1.00 30 ?a??? 0?? ? 011 rev. 1.00 31 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan package information 28-pin sop (300mil) outline dimensions               ms-013 symbol dimensions in inch min. nom. max. a 0.393 D 0.419 b 0.?56 D 0.300 c 0.01? D 0.0?0 c 0.697 D 0.713 d D D 0.104 e D 0.050 D f 0.004 D 0.01? g 0.016 D 0.050 h 0.008 D 0.013 0 D 8 symbol dimensions in mm min. nom. max. a 9.98 D 10.64 b 6.50 D 7.6? c 0.30 D 0.51 c 17.70 D 18.11 d D D ?.64 e D 1.?7 D f 0.10 D 0.30 g 0.41 D 1.?7 h 0.?0 D 0.33 0 D 8
rev. 1.00 30 ?a??? 0?? ? 011 rev. 1.00 31 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan reel dimensions product tape and reel specifications reel dimensions sop 28w (300mil) symbol description dimensions in mm a reel outer diameter 330.01.0 b reel inner diameter 100.01.5 c spindle hole diameter 13.0 +0.5/-0.2 d key slit width 2.00.5 t1 space between flange 24.8 +0.3/-0.2 t2 reel thickness 30.20.2 package information 2 april 1, 2010         sop 28w (300mil) symbol description dimensions in mm a reel oute? diamete? 330.01.0 b reel inne? diamete? 100.01.5 c spindle hole diamete? 13.0 +0.5/-0.? d key slit widt? ?.00.5 t1 spa?e between flange ?4.8 +0.3/-0.? t? reel t?i?kness 30.?0.?
rev. 1.00 3? ?a??? 0?? ? 011 rev. 1.00 33 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan carrier tape dimensions carrier tape dimensions sop 28w (300mil) symbol description dimensions in mm w carrier tape width 24.00.3 p cavity pitch 12.00.1 e perforation position 1.750.10 f cavity to perforation (width direction) 11.50.1 d perforation diameter 1.5 +0.1/-0.0 d1 cavity hole diameter 1.50 +0.25/-0.00 p0 perforation pitch 4.00.1 p1 cavity to perforation (length direction) 2.00.1 a0 cavity length 10.850.10 b0 cavity width 18.340.10 k0 cavity depth 2.970.10 t carrier tape thickness 0.350.01 c cover tape width 21.30.1 package information 3 april 1, 2010                             
   
                    
                sop 28w (300mil) symbol description dimensions in mm w ca??ie? tape widt? ?4.00.3 p cavity pit?? 1?.00.1 e pe?fo?ation position 1.750.10 f cavity to pe?fo?ation (widt? di?e?tion) 11.50.1 d pe?fo?ation diamete? 1.5 +0.1/-0.0 d1 cavity hole diamete? 1.50 +0.?5/-0.00 p0 pe?fo?ation pit?? 4.00.1 p1 cavity to pe?fo?ation (lengt? di?e?tion) ?.00.1 a0 cavity lengt? 10.850.10 b0 cavity widt? 18.340.10 k0 cavity dept? ?.970.10 t ca??ie? tape t?i?kness 0.350.01 c cove? tape widt? ?1.30.1
rev. 1.00 3? ?a??? 0?? ? 011 rev. 1.00 33 ?a??? 0?? ? 011 HT16K23 ram mapping 20*4/16*8 lcd controller driver with keyscan holtek semiconductor inc. (headquarters) no.3? c?eation rd. ii? s?ien?e pa?k? hsin??u? taiwan tel: 886-3-563-1999 fax: 886-3-563-1189 ? ttp://www.?oltek.?om.tw holtek semiconductor inc. (taipei sales offce) 4f-?? no. 3-?? yuanqu st.? nankang softwa?e pa?k? taipei 115? taiwan tel: 886- ?-?655-7070 fax: 886-2-2655-7373 fax: 886-2-2655-7383 (international sales hotline) holtek semiconductor inc. (shenzhen sales offce) 5f, unit a, productivity building, no.5 gaoxin m 2nd road, nanshan district, shenzhen, china 518057 tel: 86-755-8616-9908 ? 86-755-8616-9308 fax: 86-755-8616-9722 holtek semiconductor (usa), inc. (north america sales offce) 467?9 f?emont blvd.? f?emont? ca 94538? usa tel: 1-510- ?5?-9880 fax: 1-510-252-9885 ? ttp://www.?oltek.?om copy?ig?t ? ? 011 by holtek se? iconductor inc. t?e info?mation appea? ing in t?is data s? eet is believed to be a??u? ate at t?e time of publi? ation. howeve ?? holtek assumes no ? esponsibility a?ising f ?om t ? e use of t ?e spe? ifi? ations des ?? ibed. t ?e appli? ations mentioned ?e? ein a? e used solely fo? t? e pu? pose of illust? ation and holtek makes no wa?? anty o? representation that such applications will be suitable without further modifcation, nor recommends the use of its p ?odu? ts fo? appli? ation t? at may p?esent a ?isk to ? uman life due to malfun?tion o? ot?e?wise. holtek's p?odu?ts a?e not aut?o? ized fo? use as ??iti?al ?omponents in life suppo?t devi?es o? systems. holtek ?ese?ves the right to alter its products without prior notifcation. for the most up-to-date information, please visit our web site at ? ttp://www.?oltek.?om.tw .


▲Up To Search▲   

 
Price & Availability of HT16K23

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X